
import _region as reg
from _region import Rotated, Translated, Circle, Polygon


def Ellipse(xc, yc, radius_major, radius_minor, angle=None, cntx=None):

    r =  reg.Ellipse(xc, yc, radius_major, radius_minor, cntx)
    if angle is not None:
        r = reg.Rotated(r, angle, xc, yc)

    return r

def Box(xc, yc, width, height, angle=None, cntx=None):

    r =  reg.Box(xc, yc, width, height, cntx)
    if angle is not None:
        r = reg.Rotated(r, angle, xc, yc)

    return r
    
    
